import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Login.vue'
Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: 'Login',
		component: () => import('@/views/Login.vue')
	},
	{
		path: '/business',
		name: 'BusinessMsg',
		component: () => import('@/views/Business/BusinessMsg.vue')
	},
	{
		path: '/businessdetail/:id',
		name: 'BusinessDetail',
		component: () => import('@/views/Business/BusinessDetail.vue'),
		props: true,
	},
	{
		path: '/executive/:id',
		name: 'Executive',
		component: () => import('@/views/Executive/ExecutiveMsg.vue'),
		props: true,
	},
	{
		path: '/executivedetail/:id',
		name: 'executiveDetail',
		component: () => import('@/views/Executive/ExecutiveDetail.vue'),
		props: true,
	},
]

const router = new VueRouter({
	routes
})

export default router
